def input_l():
    l = []
    while True:
        i = input("what's the number(or 'quit'):")
        if i != 'quit':
            i = int(i)
            l.append(i)
        else:
            return l
        
def swap(l,m,j):
    l[m], l[j] = l[j], l[m]


old_l = input_l()
l = old_l.pop
new_l = [l]
for mun_old_l in range(0,len(old_l)):
    ckeck = 0
    num = old_l.pop()
    for s in len(new_l):
        if check == len(new_l) - 1:
            new_l.append(num)
            break
        elif s < num:
            check += 1
            continue
        else:
            new_l.insert(s.index(),num)            